package com.ax.associator.store.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class BusiAttachRelation {
    /**
     * 关联ID
     */
    private Long relationId;

    /**
     * 业务编码
     */
    private String businessCode;

    /**
     * 业务类型
     */
    private String businessType;

    /**
     * 业务单号
     */
    private String businessSeq;

    /**
     * 附件编码
     */
    private Long attachmentId;

    /**
     * 附件名称
     */
    private String attachmentName;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 排序号
     */
    private Integer sequence;

    /**
     * 状态
     */
    private Integer flag;

    public BusiAttachRelation(Long relationId, String businessCode, String businessType, String businessSeq, Long attachmentId, String attachmentName, String fileName, Integer sequence, Integer flag) {
        this.relationId = relationId;
        this.businessCode = businessCode;
        this.businessType = businessType;
        this.businessSeq = businessSeq;
        this.attachmentId = attachmentId;
        this.attachmentName = attachmentName;
        this.fileName = fileName;
        this.sequence = sequence;
        this.flag = flag;
    }

    public BusiAttachRelation() {
        super();
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode == null ? null : businessCode.trim();
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType == null ? null : businessType.trim();
    }

    public String getBusinessSeq() {
        return businessSeq;
    }

    public void setBusinessSeq(String businessSeq) {
        this.businessSeq = businessSeq == null ? null : businessSeq.trim();
    }



    public String getAttachmentName() {
        return attachmentName;
    }

    public void setAttachmentName(String attachmentName) {
        this.attachmentName = attachmentName == null ? null : attachmentName.trim();
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName == null ? null : fileName.trim();
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }

    public Long getAttachmentId() {
        return attachmentId;
    }

    public void setAttachmentId(Long attachmentId) {
        this.attachmentId = attachmentId;
    }
}